package com.mao.other;

import java.util.Comparator;
import java.util.Map;
import java.util.TreeMap;

/**
 * @author Totoro
 * @date 2020/8/25
 * @explain:
 */
public class MyTreeMap {
    public static void main(String[] args) {
        TreeMap<Integer, Integer> map = new TreeMap<>(new Comparator<Integer>() {
            @Override
            public int compare(Integer o1, Integer o2) {
                return o2-o1;
            }
        });

    }
}
